/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entities;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 *
 * @author Nas
 */
@Entity
@Table(name = "SIGNO_VITAL")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "SignoVital.findAll", query = "SELECT s FROM SignoVital s"),
    @NamedQuery(name = "SignoVital.findByIdSignoVital", query = "SELECT s FROM SignoVital s WHERE s.idSignoVital = :idSignoVital"),
    @NamedQuery(name = "SignoVital.findByEdad", query = "SELECT s FROM SignoVital s WHERE s.edad = :edad"),
    @NamedQuery(name = "SignoVital.findByFrecCardiNormal", query = "SELECT s FROM SignoVital s WHERE s.frecCardiNormal = :frecCardiNormal"),
    @NamedQuery(name = "SignoVital.findByFrecRespiNormal", query = "SELECT s FROM SignoVital s WHERE s.frecRespiNormal = :frecRespiNormal"),
    @NamedQuery(name = "SignoVital.findByEstado", query = "SELECT s FROM SignoVital s WHERE s.estado = :estado")})
public class SignoVital implements Serializable {
    @OneToMany(mappedBy = "idSignoVital")
    private Collection<EvaluacionSv> evaluacionSvCollection;
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "ID_SIGNO_VITAL")
    private Integer idSignoVital;
    @Column(name = "EDAD")
    private String edad;
    @Column(name = "FREC_CARDI_NORMAL")
    private String frecCardiNormal;
    @Column(name = "FREC_RESPI_NORMAL")
    private String frecRespiNormal;
    @Column(name = "ESTADO")
    private String estado;

    public SignoVital() {
    }

    public SignoVital(Integer idSignoVital) {
        this.idSignoVital = idSignoVital;
    }

    public Integer getIdSignoVital() {
        return idSignoVital;
    }

    public void setIdSignoVital(Integer idSignoVital) {
        this.idSignoVital = idSignoVital;
    }

    public String getEdad() {
        return edad;
    }

    public void setEdad(String edad) {
        this.edad = edad;
    }

    public String getFrecCardiNormal() {
        return frecCardiNormal;
    }

    public void setFrecCardiNormal(String frecCardiNormal) {
        this.frecCardiNormal = frecCardiNormal;
    }

    public String getFrecRespiNormal() {
        return frecRespiNormal;
    }

    public void setFrecRespiNormal(String frecRespiNormal) {
        this.frecRespiNormal = frecRespiNormal;
    }

    public String getEstado() {
        return estado;
    }

    public void setEstado(String estado) {
        this.estado = estado;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idSignoVital != null ? idSignoVital.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof SignoVital)) {
            return false;
        }
        SignoVital other = (SignoVital) object;
        if ((this.idSignoVital == null && other.idSignoVital != null) || (this.idSignoVital != null && !this.idSignoVital.equals(other.idSignoVital))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Entities.SignoVital[ idSignoVital=" + idSignoVital + " ]";
    }

    @XmlTransient
    public Collection<EvaluacionSv> getEvaluacionSvCollection() {
        return evaluacionSvCollection;
    }

    public void setEvaluacionSvCollection(Collection<EvaluacionSv> evaluacionSvCollection) {
        this.evaluacionSvCollection = evaluacionSvCollection;
    }

}
